package bm.com.project.server.common.controller;

import bm.com.framework.common.config.EnumRoute;
import bm.com.project.server.common.dto.BmAdjunctsDTO;
import bm.com.project.server.common.service.BmAdjunctsService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(EnumRoute.CommonRoute.Base)
public class AdjunctsController {

    @Resource
    BmAdjunctsService bmAdjunctsService;

    @PostMapping("/save")
    public String saveAdjunct(@RequestBody BmAdjunctsDTO dto)
    {
        boolean b = bmAdjunctsService.saveAdjunct(dto);
        System.out.println( b);
        return null;
    }
}
